package com.kyp.util;

public class Validation {
	public static Boolean isInteger(String str){
		int size = str.length();
		
		for(int i = 0; i < size; i++){
			if(Character.isDigit(str.charAt(i)) == false){
				return false;
			}
		}
		
		return size > 0;
	}
	
	public static Boolean isNumeric(String str){
	  try  
	  {  
	    Double.parseDouble(str);  
	  }  
	  catch(NumberFormatException nfe)  
	  {  
	    return false;  
	  }  
	  return true;
	}
}
